package com.cheetah.start.module.system.service;


import com.baomidou.mybatisplus.solon.plugins.pagination.Page;
import com.baomidou.mybatisplus.solon.service.IService;
import com.cheetah.start.common.base.query.PageQuery;
import com.cheetah.start.module.system.domain.SysSet;

import java.util.List;

public interface SysSetService extends IService<SysSet> {

    boolean saveOrUpdateByKV(String key, String val);

    boolean saveOrUpdateByKey(SysSet sysSet);

    SysSet getByKey(String key, boolean allowNull);

    /**
     * 是否开启 接口文档
     *
     * @return boolean
     */
    boolean allowSwagger();

    boolean removeByKey(String key);

    boolean saveBatchByKey(List<SysSet> list);

    Page<SysSet> pageList(PageQuery pageQuery, SysSet sysSet);
}
